/*
 * @Author: yxfan
 * @Date: 2023-07-03 20:52:43
 * @LastEditTime: 2023-07-03 21:08:57
 * @FilePath: /umi-demo/src/pages/demo/ZombieChildren/model.js
 * @Description:
 */

export default {
    namespace: 'zombieChildren',
    state: {
        num: 0,
    },
    reducers: {
        addNum(state, { payload }) {
            return {
                ...state,
                num: state.num + payload,
            };
        },
        subNum(state, { payload }) {
            return {
                ...state,
                num: state.num - payload,
            };
        },
    },
};
